package com.izobnehc.rabbit.rabbitadmin.handler;

import com.izobnehc.rabbit.rabbitframework.common.domain.Result;
import org.springframework.dao.DataAccessException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author 11272
 * @date 2023/10/16 20:48
 **/
@RestControllerAdvice
public class GlobalExceptionHandler {

/*    @ExceptionHandler(Exception.class)
    public Result<Boolean> dataAccessError(Exception e) {
        System.out.println("捕获到异常");
        return Result.fail(500100, "存在异常");
    }*/
}
